/*
 * @Author: jiu yin
 * @Date: 2024-07-04 13:39:21
 * @LastEditTime: 2024-07-04 13:39:23
 * @LastEditors: jiu yin zhen jing
 * @FilePath: \studio-web-admin\src\sentry.js
 * jiu
 */
import * as Sentry from "@sentry/react";

Sentry.init({
  dsn: "https://69779edd10b296a5593f3ce68b49b03a@o4507536464543744.ingest.de.sentry.io/4507536474701904",
  integrations: [
    Sentry.browserTracingIntegration(),
    Sentry.replayIntegration(),
  ],
  // Performance Monitoring
  tracesSampleRate: 1.0, //  Capture 100% of the transactions
  // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
  // tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],
  // Session Replay
  replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
  replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
});